package com.kolaxy.provideruser;

import com.kolaxy.provideruser.bean.App;
import com.kolaxy.provideruser.dao.BaseDao;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.jmx.support.RegistrationPolicy;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling // 定时任务
@EntityScan(basePackageClasses = {App.class})
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
@EnableJpaRepositories(basePackageClasses = {BaseDao.class})
public class ProviderUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProviderUserApplication.class, args);
    }
}
